/**
 * @description: 枚举
 * 2022/3/22 16:55
 * @author: zsjin
 */

/**
 * DSL来源枚举
 */
export enum DslSourceEnum {
    GIT = 'GIT',
    LOCAL = 'LOCAL',
}

/**
 * DSL类型枚举
 */
export enum DslTypeEnum {
    WORKFLOW = 'WORKFLOW',
    PIPELINE = 'PIPELINE',
}

/**
 * 节点类型枚举
 */
export enum NodeTypeEnum {
    DOCKER = 'DOCKER',
    SHELL = 'SHELL',
}

/**
 * 触发类型枚举
 */
export enum TriggerTypeEnum {
    WEBHOOK = 'WEBHOOK',
    CRON = 'CRON',
    MANUAL = 'MANUAL',
}

/**
 * 任务状态枚举
 */
export enum TaskStatusEnum {
    INIT = 'INIT',
    WAITING = 'WAITING',
    RUNNING = 'RUNNING',
    SKIPPED = 'SKIPPED',
    FAILED = 'FAILED',
    SUCCEEDED = 'SUCCEEDED',
}

/**
 * 流程执行记录状态枚举
 */
export enum WorkflowExecutionRecordStatusEnum {
    RUNNING = 'RUNNING',
    FINISHED = 'FINISHED',
    TERMINATED = 'TERMINATED',
}

/**
 * 节点工具栏tab类型枚举
 */
export enum NodeToolbarTabTypeEnum {
    LOG = 'log',
    PARAMS = 'params',
}


/**
 * 参数类型
 */
export enum ParamTypeEnum {
    SECRET = 'SECRET'
}

/**
 * 任务参数类型枚举
 */
export enum TaskParamTypeEnum {
    INPUT = 'INPUT',
    OUTPUT = 'OUTPUT',
}